﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>吾爱直播分享有礼平台下载</title>
	</head>
		<style>
			*{
				box-sizing: border-box;
			}
			html,body{
				margin: 0;
				padding: 0;
			}
			html{
				overflow-x: hidden;
			}
			@media screen and (min-width: 375px) {
				html{
					font-size: 2.3vw;
				}
				body{
				width: 100vw;
				height: 322.6666666vw;
				}
				#html1{
				background-image: url(img/平台下载背景图层1@2x.png);	
				}
				#html1 div:nth-of-type(1){
				background-image: url(img/矢量智能对象拷贝@2x.png);
				}
				#html1 div:nth-of-type(2){
				background-image: url(img/安卓下载@2x.png);
				}
				#html1 div:nth-of-type(3){
				background-image: url(img/IOS下载拷贝@2x.png);
				}
			}
			
			
			
			@media screen and (min-width: 1200px) {
				html{
					font-size: 1.5vw;
				}
				body {
					width: 70vw;
					height: 225.86vw;
					margin: 0 auto;
				}
				#html1{
				background-image: url(img/平台背景图层1@3x.png);
				}
				#html1 div:nth-of-type(1){
				background-image: url(img/矢量智能对象拷贝@3x.png);
				}
				#html1 div:nth-of-type(2){
				background-image: url(img/安卓下载@3x.png);
				}
				#html1 div:nth-of-type(3){
				background-image: url(img/IOS下载拷贝@3x.png);
				}
			}
			
			
			
			#html1{
				width: 100%;
				height: 50%;
				background-size: 100% 100%;
				background-repeat: no-repeat;
				padding-top: 18%;
			}
			#html1 div{
				background-size: 100% 100%;
				background-repeat: no-repeat;
				margin: 0 auto;
			}
			#html1 div:nth-of-type(1){
				width: 40%;
				height: 36%;
				margin-bottom: 16%;
			}
			#html1 div:nth-of-type(2){
				width: 73%;
				height: 8%;
				margin-bottom: 4.8%;
			}
			#html1 div:nth-of-type(3){
				width: 73%;
				height: 8%;
			}
			
			
			
			
			
			main{
				width: 100%;
				height: 50%;
				background-image: url(img/背景.png);
				background-size: 100% 100%;
				background-repeat: no-repeat;
				position: relative;
				margin: 0;
			}
			#img{
				width: 90%;
				height: 40%;
				margin: 0 5%;
				background-image: url(img/组.png);
				background-repeat: no-repeat;
				background-size: 100% 100%;
				position: absolute;
				bottom: 1%;
				display: flex;
				justify-content: space-around;
				padding: 5%;
			}
			#img p:nth-of-type(1){
				width: 30%;
				height: 30%;
				background-image: url(img/hb_item.png);
				background-size: 100% 100%;
				background-repeat: no-repeat;
				
			}
			#img p:nth-of-type(2){
				width: 46%;
				height: 30%;
				float: right;
				background-image: url(img/字.png);
				background-size: 100% 100%;
				background-repeat: no-repeat;
			}
			.inp{
				width: 85%;
				background-image: url(img/输入框.png);
				background-repeat: no-repeat;
				background-size: 100% 100%;
				border: 0;
				outline: 0;
				margin: 0 7.5%;
				padding-left: 7%;
				padding-right: 7%;
				font-size: 2rem;
			}
			.inp:nth-of-type(1){
				height: 30%;
			}
			#btn{
				height: 30%;
			}
			#btn .inp{
				height: 100%;
			}
		 	main section{
				width: 100%;
				height: 20%;
				position: absolute;
				bottom: 2%;
			}
			main section p{
				width: 78%;
				height: 20%;
				background-image: url(img/button.png);
				background-repeat: no-repeat;
				background-size: 100% 100%;
				margin: 0;
				margin: 0 11%;
			}
			#btn2{
				border-bottom-color: #EDEAE5;
				position: absolute;
				font-size: 1.5rem;
				outline: none;
				border-radius: 15px;
				background-color: #EDEAE5;
				color: #6C6C6B;
				right: 15%;
				top: 36.5%;
			}
		</style>
	<body>
		<section id="html1">
			<div></div>
			<div></div>
			<div></div>
		</section>
		
		
		<main>
			<div id="img">
				<p></p>
				<p></p>
			</div>
			<section>
				<input class="inp" type="phone" placeholder="请输入手机号"/>
				<div id="btn">
					<input id="btn2" value="发送" type="button"></input>
					<input class="inp" type="text" placeholder="请输入验证码"/>
				</div>
				<p></p>				
			</section>
		</main>
		<script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.js"></script>
		<script src="https://cdn.bootcss.com/layer/3.0/layer.js"></script>
		<script>
			$('section p').click(function () {
            layer.alert('领取成功', {
                icon: 10,
            });
        	});
        	
        	
        	 var wait =60
    function time(o) {
        if (wait == 0){
            o.removeAttribute("disabled")
            o.value="重新发送"
            wait=60
        }else {
            o.setAttribute("disabled",true)
            o.value= wait + "s"
            wait --
            setTimeout(function () {
                time(o)
            },1000)
        }

        }
    document.getElementById("btn2").onclick =function () {
        time(this)
    }
      
		</script>
	</body>
</html>
